package com.example.weatherforecast.whtrcdn.net

import com.fasterxml.jackson.annotation.JsonProperty

data class WhtrcdnData(
    @JsonProperty("data")
    val data: Data,
    @JsonProperty("desc")
    val desc: String,
    @JsonProperty("status")
    val status: Int
)

data class Data(
    @JsonProperty("city")
    val city: String,
    @JsonProperty("forecast")
    val forecast: List<Forecast>,
    @JsonProperty("ganmao")
    val ganmao: String,
    @JsonProperty("wendu")
    val wendu: String,
    @JsonProperty("yesterday")
    val yesterday: Yesterday
)

data class Forecast(
    @JsonProperty("date")
    val date: String,
    @JsonProperty("fengli")
    val fengli: String,
    @JsonProperty("fengxiang")
    val fengxiang: String,
    @JsonProperty("high")
    val high: String,
    @JsonProperty("low")
    val low: String,
    @JsonProperty("type")
    val type: String
)

data class Yesterday(
    @JsonProperty("date")
    val date: String,
    @JsonProperty("fl")
    val fl: String,
    @JsonProperty("fx")
    val fx: String,
    @JsonProperty("high")
    val high: String,
    @JsonProperty("low")
    val low: String,
    @JsonProperty("type")
    val type: String
)